\(\int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx\) [19]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F]
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 20, antiderivative size = 157 \[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=-\frac {\cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Chi}\left (\frac {2 c f}{d}+2 f x\right )}{2 a d}+\frac {\log (c+d x)}{2 a d}+\frac {\text {Chi}\left (\frac {2 c f}{d}+2 f x\right ) \sinh \left (2 e-\frac {2 c f}{d}\right )}{2 a d}+\frac {\cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{2 a d}-\frac {\sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{2 a d} \]

[Out]

-1/2*Chi(2*c*f/d+2*f*x)*cosh(-2*e+2*c*f/d)/a/d+1/2*ln(d*x+c)/a/d+1/2*cosh(-2*e+2*c*f/d)*Shi(2*c*f/d+2*f*x)/a/d
-1/2*Chi(2*c*f/d+2*f*x)*sinh(-2*e+2*c*f/d)/a/d+1/2*Shi(2*c*f/d+2*f*x)*sinh(-2*e+2*c*f/d)/a/d

Rubi [A] (verified)

Time = 0.20 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3807, 3384, 3379, 3382} \[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=\frac {\text {Chi}\left (2 x f+\frac {2 c f}{d}\right ) \sinh \left (2 e-\frac {2 c f}{d}\right )}{2 a d}-\frac {\text {Chi}\left (2 x f+\frac {2 c f}{d}\right ) \cosh \left (2 e-\frac {2 c f}{d}\right )}{2 a d}-\frac {\sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (2 x f+\frac {2 c f}{d}\right )}{2 a d}+\frac {\cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (2 x f+\frac {2 c f}{d}\right )}{2 a d}+\frac {\log (c+d x)}{2 a d} \]

[In]

Int[1/((c + d*x)*(a + a*Coth[e + f*x])),x]

[Out]

-1/2*(Cosh[2*e - (2*c*f)/d]*CoshIntegral[(2*c*f)/d + 2*f*x])/(a*d) + Log[c + d*x]/(2*a*d) + (CoshIntegral[(2*c
*f)/d + 2*f*x]*Sinh[2*e - (2*c*f)/d])/(2*a*d) + (Cosh[2*e - (2*c*f)/d]*SinhIntegral[(2*c*f)/d + 2*f*x])/(2*a*d
) - (Sinh[2*e - (2*c*f)/d]*SinhIntegral[(2*c*f)/d + 2*f*x])/(2*a*d)

Rule 3379

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[I*(SinhIntegral[c*f*(fz/
d) + f*fz*x]/d), x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*e - c*f*fz*I, 0]

Rule 3382

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CoshIntegral[c*f*(fz/d)
+ f*fz*x]/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*(e - Pi/2) - c*f*fz*I, 0]

Rule 3384

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[c*(f/d) + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[c*(f/d) + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 3807

Int[1/(((c_.) + (d_.)*(x_))*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])), x_Symbol] :> Simp[Log[c + d*x]/(2*a*d), x
] + (Dist[1/(2*a), Int[Cos[2*e + 2*f*x]/(c + d*x), x], x] + Dist[1/(2*b), Int[Sin[2*e + 2*f*x]/(c + d*x), x],
x]) /; FreeQ[{a, b, c, d, e, f}, x] && EqQ[a^2 + b^2, 0]

Rubi steps \begin{align*} \text {integral}& = \frac {\log (c+d x)}{2 a d}+\frac {i \int \frac {\sin \left (2 \left (i e+\frac {\pi }{2}\right )+2 i f x\right )}{c+d x} \, dx}{2 a}+\frac {\int \frac {\cos \left (2 \left (i e+\frac {\pi }{2}\right )+2 i f x\right )}{c+d x} \, dx}{2 a} \\ & = \frac {\log (c+d x)}{2 a d}-\frac {\cosh \left (2 e-\frac {2 c f}{d}\right ) \int \frac {\cosh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{2 a}+\frac {\cosh \left (2 e-\frac {2 c f}{d}\right ) \int \frac {\sinh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{2 a}+\frac {\sinh \left (2 e-\frac {2 c f}{d}\right ) \int \frac {\cosh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{2 a}-\frac {\sinh \left (2 e-\frac {2 c f}{d}\right ) \int \frac {\sinh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{2 a} \\ & = -\frac {\cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Chi}\left (\frac {2 c f}{d}+2 f x\right )}{2 a d}+\frac {\log (c+d x)}{2 a d}+\frac {\text {Chi}\left (\frac {2 c f}{d}+2 f x\right ) \sinh \left (2 e-\frac {2 c f}{d}\right )}{2 a d}+\frac {\cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{2 a d}-\frac {\sinh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{2 a d} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.63 (sec) , antiderivative size = 122, normalized size of antiderivative = 0.78 \[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=\frac {\text {csch}(e+f x) (\cosh (f x)+\sinh (f x)) \left (\log (f (c+d x)) (\cosh (e)+\sinh (e))+\text {Chi}\left (\frac {2 f (c+d x)}{d}\right ) \left (-\cosh \left (e-\frac {2 c f}{d}\right )+\sinh \left (e-\frac {2 c f}{d}\right )\right )+\left (\cosh \left (e-\frac {2 c f}{d}\right )-\sinh \left (e-\frac {2 c f}{d}\right )\right ) \text {Shi}\left (\frac {2 f (c+d x)}{d}\right )\right )}{2 a d (1+\coth (e+f x))} \]

[In]

Integrate[1/((c + d*x)*(a + a*Coth[e + f*x])),x]

[Out]

(Csch[e + f*x]*(Cosh[f*x] + Sinh[f*x])*(Log[f*(c + d*x)]*(Cosh[e] + Sinh[e]) + CoshIntegral[(2*f*(c + d*x))/d]
*(-Cosh[e - (2*c*f)/d] + Sinh[e - (2*c*f)/d]) + (Cosh[e - (2*c*f)/d] - Sinh[e - (2*c*f)/d])*SinhIntegral[(2*f*
(c + d*x))/d]))/(2*a*d*(1 + Coth[e + f*x]))

Maple [A] (verified)

Time = 0.34 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.39

method result size
risch \(\frac {\ln \left (d x +c \right )}{2 a d}+\frac {{\mathrm e}^{\frac {2 c f -2 d e}{d}} \operatorname {Ei}_{1}\left (2 f x +2 e +\frac {2 c f -2 d e}{d}\right )}{2 a d}\) \(61\)

[In]

int(1/(d*x+c)/(a+a*coth(f*x+e)),x,method=_RETURNVERBOSE)

[Out]

1/2*ln(d*x+c)/a/d+1/2/a/d*exp(2*(c*f-d*e)/d)*Ei(1,2*f*x+2*e+2*(c*f-d*e)/d)

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.48 \[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=-\frac {{\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) \cosh \left (-\frac {2 \, {\left (d e - c f\right )}}{d}\right ) + {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) \sinh \left (-\frac {2 \, {\left (d e - c f\right )}}{d}\right ) - \log \left (d x + c\right )}{2 \, a d} \]

[In]

integrate(1/(d*x+c)/(a+a*coth(f*x+e)),x, algorithm="fricas")

[Out]

-1/2*(Ei(-2*(d*f*x + c*f)/d)*cosh(-2*(d*e - c*f)/d) + Ei(-2*(d*f*x + c*f)/d)*sinh(-2*(d*e - c*f)/d) - log(d*x
+ c))/(a*d)

Sympy [F]

\[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=\frac {\int \frac {1}{c \coth {\left (e + f x \right )} + c + d x \coth {\left (e + f x \right )} + d x}\, dx}{a} \]

[In]

integrate(1/(d*x+c)/(a+a*coth(f*x+e)),x)

[Out]

Integral(1/(c*coth(e + f*x) + c + d*x*coth(e + f*x) + d*x), x)/a

Maxima [A] (verification not implemented)

none

Time = 0.33 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.31 \[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=\frac {e^{\left (-2 \, e + \frac {2 \, c f}{d}\right )} E_{1}\left (\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{2 \, a d} + \frac {\log \left (d x + c\right )}{2 \, a d} \]

[In]

integrate(1/(d*x+c)/(a+a*coth(f*x+e)),x, algorithm="maxima")

[Out]

1/2*e^(-2*e + 2*c*f/d)*exp_integral_e(1, 2*(d*x + c)*f/d)/(a*d) + 1/2*log(d*x + c)/(a*d)

Giac [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.31 \[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=-\frac {{\left ({\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) e^{\left (\frac {2 \, c f}{d}\right )} - e^{\left (2 \, e\right )} \log \left (d x + c\right )\right )} e^{\left (-2 \, e\right )}}{2 \, a d} \]

[In]

integrate(1/(d*x+c)/(a+a*coth(f*x+e)),x, algorithm="giac")

[Out]

-1/2*(Ei(-2*(d*f*x + c*f)/d)*e^(2*c*f/d) - e^(2*e)*log(d*x + c))*e^(-2*e)/(a*d)

Mupad [F(-1)]

Timed out. \[ \int \frac {1}{(c+d x) (a+a \coth (e+f x))} \, dx=\int \frac {1}{\left (a+a\,\mathrm {coth}\left (e+f\,x\right )\right )\,\left (c+d\,x\right )} \,d x \]

[In]

int(1/((a + a*coth(e + f*x))*(c + d*x)),x)

[Out]

int(1/((a + a*coth(e + f*x))*(c + d*x)), x)